package cn.bone.motan.demo2.service;

import cn.bone.motan.demo1.api.Hello;
import com.weibo.api.motan.config.springsupport.annotation.MotanService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Created by MD-01 on 2017/3/9.
 */
@Service
public class HelloServiceImpl implements Hello{

    private Logger logger = LoggerFactory.getLogger("hello服务");
    @Override
    public String sayHello(String name) {
        logger.info("调用sayHello()");
        return "hello " + name;
    }

    @Override
    public int compute(int a, int b) {
        logger.info("调用compute");
        return a + b;
    }
}
